//
// Created by francklinson on 2021/12/4 AT 10:27.
// May Saint Diana bless you!
//

#include <iostream>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <algorithm>
#include <functional>
#include <climits>
#include <string>

using namespace std;

class Solution {
public:
    int numOfStrings(vector<string> &patterns, string word) {
        int ans = 0;
        for (const string &x: patterns) {
            if (word.find(x) != string::npos)
                ++ans;
        }
        return ans;
    }
};

int main() {
    vector<string> patterns{"a", "abc", "bc", "d"};
    Solution solution;
    cout << solution.numOfStrings(patterns, "abc") << endl;
    return 0;
}

